/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.util.ArrayList;
/*     */ import java.util.List;
/*     */ import java.util.concurrent.ConcurrentHashMap;
/*     */ import net.minecraft.entity.EntityLivingBase;
/*     */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*     */ 
/*     */ 
/*     */ public class kba
/*     */ {
/*  12 */   public static kba q = new kba();
/*     */   
/*  14 */   private ConcurrentHashMap<String, eos/moe/dragoncore/dfa> g = new ConcurrentHashMap<>();
/*     */   
/*     */   public ConcurrentHashMap<String, eos/moe/dragoncore/dfa> v() {
/*  17 */     return this.g;
/*     */   }
/*     */ 
/*     */   
/*     */   public static class eos/moe/dragoncore/dfa
/*     */   {
/*     */     private String l;
/*     */     private String t;
/*     */     private String d;
/*     */     private String z;
/*     */     private String i;
/*     */     private String w;
/*     */     private String q;
/*  30 */     private List<kba.eos/moe/dragoncore/fia> g = new ArrayList<>();
/*     */ 
/*     */     
/*     */     public eos/moe/dragoncore/dfa(ConfigurationSection configurationSection) {
/*  34 */       this.l = String.valueOf(configurationSection.get("offsetY"));
/*  35 */       this.t = configurationSection.getString("background.path");
/*  36 */       this.d = String.valueOf(configurationSection.get("background.width", Integer.valueOf(0)));
/*  37 */       this.z = String.valueOf(configurationSection.get("background.height", Integer.valueOf(0)));
/*     */       
/*  39 */       this.i = configurationSection.getString("health.path");
/*  40 */       this.w = String.valueOf(configurationSection.get("health.width", Integer.valueOf(0)));
/*  41 */       this.q = String.valueOf(configurationSection.get("health.height", Integer.valueOf(0)));
/*     */       
/*  43 */       ConfigurationSection configurationSection1 = configurationSection.getConfigurationSection("string");
/*  44 */       if (configurationSection1 != null) {
/*  45 */         configurationSection1.getKeys(false).stream().map(configurationSection1::getConfigurationSection).forEach(configurationSection -> this.g.add(new kba.eos/moe/dragoncore/fia(configurationSection)));
/*     */       }
/*     */     }
/*     */ 
/*     */ 
/*     */     
/*     */     public double v(EntityLivingBase entityLivingBase) {
/*  52 */       return ra.z(this.l.replace("%height%", String.valueOf(entityLivingBase.field_70131_O)));
/*     */     }
/*     */     
/*     */     public String z() {
/*  56 */       return this.t;
/*     */     }
/*     */     
/*     */     public float t(float f1, float f2) {
/*  60 */       return (float)ra.z(this.d.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*     */     }
/*     */     
/*     */     public float h(float f1, float f2) {
/*  64 */       return (float)ra.z(this.z.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*     */     }
/*     */     
/*     */     public String v() {
/*  68 */       return this.i;
/*     */     }
/*     */ 
/*     */     
/*     */     public float z(float f1, float f2) {
/*  73 */       return (float)ra.z(this.w.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*     */     }
/*     */     
/*     */     public float v(float f1, float f2) {
/*  77 */       return (float)ra.z(this.q.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*     */     }
/*     */     
/*     */     public List<kba.eos/moe/dragoncore/fia> v() {
/*  81 */       return this.g;
/*     */     }
/*     */   }
/*     */   
/*     */   public static class eos/moe/dragoncore/fia {
/*     */     private String d;
/*     */     private String z;
/*     */     private String i;
/*     */     private float w;
/*     */     private boolean q;
/*     */     private boolean g;
/*     */     
/*     */     public eos/moe/dragoncore/fia(ConfigurationSection configurationSection) {
/*  94 */       this.d = configurationSection.getString("content");
/*  95 */       this.z = String.valueOf(configurationSection.get("x", Integer.valueOf(0)));
/*  96 */       this.i = String.valueOf(configurationSection.get("y", Integer.valueOf(0)));
/*  97 */       this.w = (float)configurationSection.getDouble("scale");
/*  98 */       this.g = configurationSection.getBoolean("center");
/*  99 */       this.q = configurationSection.getBoolean("per");
/*     */     }
/*     */     
/*     */     public String v(float f1, float f2, String str) {
/* 103 */       double d = ra.z(this.d.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/* 104 */       if (d == -999.0D) {
/* 105 */         return this.d.replace("%h%", String.valueOf((int)f1)).replace("%hmax%", String.valueOf((int)f2)).replace("%name%", str);
/*     */       }
/* 107 */       if (this.q) return (int)d + "%"; 
/* 108 */       return String.valueOf((int)d);
/*     */     }
/*     */     
/*     */     public float z(float f1, float f2) {
/* 112 */       return (float)ra.z(this.z.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*     */     }
/*     */     
/*     */     public float v(float f1, float f2) {
/* 116 */       return (float)ra.z(this.i.replace("%h%", String.valueOf(f1)).replace("%hmax%", String.valueOf(f2)));
/*     */     }
/*     */     
/*     */     public float v() {
/* 120 */       return this.w;
/*     */     }
/*     */     
/*     */     public boolean v() {
/* 124 */       return this.g;
/*     */     }
/*     */   }
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\kba.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */